<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

class BaseResource extends Resource
{
    protected static $args;
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public static function BaseResource($resource, $args = []){
        self::$args = $args;
        return self::collection($resource);
    }
}